package com.ylx.excel.excel.handler;

import java.util.List;

/**
 * description：使用threadLocal保存app信息，线程共享
 * @author Winson
 * create 2024/6/28 10:11
 */
public class ExcelDataThreadLocal {

    private static final ThreadLocal<List<?>> DATA = new ThreadLocal<>();

    public static void setData(List<?> excelData) {
        DATA.set(excelData);
    }

    public static List<?> getData() {
        return DATA.get();
    }

    public static void destroy() {
        DATA.remove();
    }
}
